<template>
	<view class="content">
		<view class="list">
			<view class="card" @click="pageUrl('处女')">
				<img src="../../static/image/chunv.png" alt="" />
				<p>处女座</p>
			</view>
			<view class="card" @click="pageUrl('金牛')">
				<img src="../../static/image/jinniu.png" alt="" />
				<p>金牛座</p>
			</view>
			<view class="card" @click="pageUrl('巨蟹')">
				<img src="../../static/image/juxie.png" alt="" />
				<p>巨蟹座</p>
			</view>
			<view class="card" @click="pageUrl('摩羯')">
				<img src="../../static/image/mojie.png" alt="" />
				<p>摩羯座</p>
			</view>
			<view class="card" @click="pageUrl('白羊')">
				<img src="../../static/image/baiyang.png" alt="" />
				<p>白羊座</p>
			</view>
			<view class="card" @click="pageUrl('射手')">
				<img src="../../static/image/sheshou.png" alt="" />
				<p>射手座</p>
			</view>
			<view class="card" @click="pageUrl('狮子')">
				<img src="../../static/image/shizi.png" alt="" />
				<p>狮子座</p>
			</view>
			<view class="card" @click="pageUrl('双鱼')">
				<img src="../../static/image/shuangyu.png" alt="" />
				<p>双鱼座</p>
			</view>
			<view class="card" @click="pageUrl('天蝎')">
				<img src="../../static/image/tianxie.png" alt="" />
				<p>天蝎座</p>
			</view>

			<view class="card" @click="pageUrl('双子')">
				<img src="../../static/image/shuangzi.png" alt="" />
				<p>双子座</p>
			</view>
			<view class="card" @click="pageUrl('水瓶')">
				<img src="../../static/image/shuiping.png" alt="" />
				<p>水瓶座</p>
			</view>
			<view class="card" @click="pageUrl('天秤')">
				<img src="../../static/image/tianping.png" alt="" />
				<p>天秤座</p>
			</view>

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {

		},
		onShareAppMessage(res) {
			wx.showShareMenu({
				withShareTicket: true,
				menus: ['shareAppMessage', 'shareTimeline']
			})
			return {
				title: "看看你今天的星座运势吧",
				imageUrl: "https://www.leedong.top/img/suangua1.jpg"
			}

		},
		//2.分享到朋友圈
		onShareTimeline() {

			return {
				title: '看看你今天的星座运势吧',
				imageUrl: "https://www.leedong.top/img/suangua1.jpg",


			}
		},
		methods: {
			pageUrl(p) {
				uni.navigateTo({
					url: `/pages/xingzuoyunshi/xingzuoyunshi?name=` +p
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #f4f1ec;
	}

	.list {
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
		padding: 20px;


		.card {
			box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 8px;
			width: 30%;
			text-align: center;
			margin-top: 30px;
			background-color: #fff;
			border-radius: 15px;
			min-height: 210rpx;
			align-items: center;


			img {
				width: 60px;
				height: 60px;
				margin-top: 10px;
				border-radius: 35px;
			}
		}

	}
</style>